package com.ruoyi.dp.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.StringJoiner;

@Data
@ApiModel(description = "机队整体情况")
public class DpDangerousPoint extends DpBaseEntity{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("危险点名称")
    private String name;

    @ApiModelProperty("危险点位置")
    private String location;

    @ApiModelProperty("城市")
    private String cityName;

    @ApiModelProperty("等级")
    private int level;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @Override
    public String toString() {
        return new StringJoiner(", ", DpDangerousPoint.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("location='" + location + "'")
                .add("cityName='" + cityName + "'")
                .add("level='" + level + "'")
                .add("longitude='" + longitude + "'")
                .add("latitude='" + latitude + "'")
                .toString();
    }
}
